<?php

class ConnectBD
{
	var $host = 'localhost',$user='root',$password='',$bd='acg';
	var $link = null;
	function Conectar()
	{
		$this->link = mysql_connect($this->host,$this->user,$this->password);
		if(!$this->link)
		{
			//print 'No se conecto';	
		}else
		{
			//print 'Se conecto'; 
			if(@mysql_select_db($this->bd))
			{
				//print 'Se conecto a la bd';
			}
		}
	}		
}
?>